import request from '@/utils/request.js';

class Details{
	//获取文章详情
	get_article_detail=(data)=>request({path:"/api/get_article_detail",data});
	//获取评论列表
	get_comment_list=(data)=>request({path:"/api/get_comment_list",data});
	//发布评论
	add_comment=(data)=>request({path:"/api/add_comment",data});
	//获取收藏列表
	get_fav_list=(data)=>request({path:"/api/get_fav_list",data});
	//添加收藏
	add_fav=(data)=>request({path:"/api/add_fav",data});
	//取消搜藏
	remove_fav=(data)=>request({path:"/api/remove_fav",data});
	//点赞
	like=(data)=>request({path:"/api/like",data});
	//取消点赞
	unlike=(data)=>request({path:"/api/unlike"});
}

export default new Details();